package jmine.tec.performance.test;

import java.util.Properties;

/**
 * Interface for classes that collect data and return as a result properties.
 * 
 * @author joao.enomoto
 */
public interface DataCollector {

    /**
     * Start collecting data.
     * 
     * @param name name for set of operations from which data will be collected.
     */
    public void startCollect(String name);

    /**
     * Stop collecting data.
     * 
     * @param name name for set of operations from which data will be collected.
     */
    public void stopCollect(String name);

    /**
     * Presents all collected data as a {@link Properties} class.
     * 
     * @return {@link Properties} with all collected data.
     */
    public Properties getResultAsProperties();

}
